package json;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import org.junit.Test;

public class demo {
    @Test
    public void demo1(){
        String a = "{\"bannerArr1\":{\"buttonColor\":\"\",\"buttonPosition\":\"\",\"router\":\"\",\"typeDictionaryId\":\"\",\"spuId\":\"\"},\"bannerArr2\":{\"buttonColor\":\"\",\"buttonPosition\":\"\",\"router\":\"\",\"typeDictionaryId\":\"\",\"spuId\":\"\"},\"bannerArr3\":{\"buttonColor\":\"\",\"buttonPosition\":\"\",\"router\":\"\",\"typeDictionaryId\":\"\",\"spuId\":\"\"},\"bannerArr4\":{\"buttonColor\":\"\",\"buttonPosition\":\"\",\"router\":\"\",\"typeDictionaryId\":\"\",\"spuId\":\"\"},\"bannerArr5\":{\"buttonColor\":\"\",\"buttonPosition\":\"\",\"router\":\"\",\"typeDictionaryId\":\"\",\"spuId\":\"\"}}";
        //JSON parse = JSONUtil.parse(a);
        JSONObject jsonObject =new JSONObject(a);
        System.out.println("result:" + jsonObject.toString()) ;
        JSONObject json = new JSONObject();
    }
}
